How to clear out a set in python

40

mySet = {1, 2, 3}
mySet.clear()
print(mySet)

# Output:
# set()

Comments

Submit
0 Comments